// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//simple script by yuikawa22

//-------------MAIN---------------
thread "VCAMRIV" 

:VCAMRIV_1
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @VCAMRIV_1
wait 0 
if  
   not Actor.Driving($PLAYER_ACTOR)
else_jump @VCAMRIV_1 
wait 0 
if 
8818:   not actor $PLAYER_ACTOR in_air 
else_jump @VCAMRIV_1 
jump @VCAMRIV_3

:VCAMRIV_3   
wait 0
if 
   Player.Defined($PLAYER_ACTOR)
jf @VCAMRIV_3 
if and  
   not Actor.Driving($PLAYER_ACTOR)
   86B9: not cutscene_data_loaded
jf @VCAMRIV_3      
0819: 10@ = actor $PLAYER_ACTOR distance_from_ground 
if or  
  10@ < 5.0 
  0A0C:  player $PLAYER_CHAR on_jetpack
else_jump @VCAMRIV_3               
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.27 0.2 0.5 
0920: point_camera 1@ 2@ 3@ transverse_to 1@ 2@ 3@ time 100 smooth_transition 2 
0922: set_camera_zoom_from 70.0 to 70.0 timelimit 2000 smooth_transition 2                                 
if and  
00E1:   player 0 pressed_key 6
  8A0C:  not player $PLAYER_CHAR on_jetpack
else_jump @VCAMRIV_3       
if and
82D8:   not actor $PLAYER_ACTOR current_weapon == 1
82D8:   not actor $PLAYER_ACTOR current_weapon == 2
82D8:   not actor $PLAYER_ACTOR current_weapon == 3
82D8:   not actor $PLAYER_ACTOR current_weapon == 4
82D8:   not actor $PLAYER_ACTOR current_weapon == 5
82D8:   not actor $PLAYER_ACTOR current_weapon == 6
82D8:   not actor $PLAYER_ACTOR current_weapon == 7
82D8:   not actor $PLAYER_ACTOR current_weapon == 8
jf @VCAMRIV_3
if and
82D8:   not actor $PLAYER_ACTOR current_weapon == 9
82D8:   not actor $PLAYER_ACTOR current_weapon == 10
82D8:   not actor $PLAYER_ACTOR current_weapon == 11
82D8:   not actor $PLAYER_ACTOR current_weapon == 12
82D8:   not actor $PLAYER_ACTOR current_weapon == 13
82D8:   not actor $PLAYER_ACTOR current_weapon == 14
82D8:   not actor $PLAYER_ACTOR current_weapon == 15
jf @VCAMRIV_3
if and
82D8:   not actor $PLAYER_ACTOR current_weapon == 16
82D8:   not actor $PLAYER_ACTOR current_weapon == 17
82D8:   not actor $PLAYER_ACTOR current_weapon == 18
82D8:   not actor $PLAYER_ACTOR current_weapon == 39
82D8:   not actor $PLAYER_ACTOR current_weapon == 40
82D8:   not actor $PLAYER_ACTOR current_weapon == 44
82D8:   not actor $PLAYER_ACTOR current_weapon == 45
82D8:   not actor $PLAYER_ACTOR current_weapon == 46
jf @VCAMRIV_3  
jump @VCAMRIV_6

:VCAMRIV_6
0925: restore_camera_to_user_defined 
jump @VCAMRIV_3                     


